package com.beta.service;

import com.beta.dto.order.CreateOrderDto;
import com.beta.dto.order.OrdersDto;

/**
 * Created by vector on 2016/12/14.
 */
public interface IOrderOperateService {

    /**
     * 创建
     * @param userId
     * @param createOrderDto
     * @return
     */
    OrdersDto createOrder(Integer userId, CreateOrderDto createOrderDto);

    /**
     * 支付确认
     * @param orderId
     */
    void executePaymentConfirm(Integer orderId);

    /**
     * 取消
     * @param orderId
     */
    void executeCancelOrder(Integer orderId);

    /**
     * 发货
     * @param orderId
     */
    void executeAssigningOrder(Integer orderId);

    /**
     * 确认收货
     * @param orderId
     */
    void executeReceiptConfirm(Integer orderId);

    /**
     * 订单完成
     * @param orderId
     */
    void executeCompleteOrder(Integer orderId);

}
